package com.miplus.ccrm.core.api.fastgpt.model;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 流式调用响应
 */
@Data
public class StreamResponse implements Serializable {
    private static final long serialVersionUID = 1L;
    private String id;
    private String object;
    private Long created; // 时间戳
    private List<Choice> choices;

    @Data
    public static class Choice implements Serializable {
        private Delta delta;
        private Integer index;
        private String finish_reason; // 驼峰命名法映射JSON中的snake_case字段（finish_reason）
    }

    @Data
    public static class Delta implements Serializable {
        private String content; // 流式传输的增量内容
    }
}